#coding = utf-8
class Listinfo(object):
    def __init__(self,args):
         self.args = args

    def add_key(self,keyname):
        self.args.append(keyname)
        return self.args

    def get_key(self,num):
         lens = len(self.args)
         if num > lens:
             return "not found"
         elif num < 0 :
             return "are you kidding me"
         else:
             return self.args[num]


    def update_list(self,argus):
        self.args.extend(argus)
        return self.args


    def del_list(self, name):
        if name in self.args:
            self.args.remove(name)
            length = len(self.args)
            return self.args[length-1]
        else:
            return "not found"

list_info = Listinfo([44,222,111,333,454,'sss','333'])
print list_info.add_key('666')
print list_info.get_key(-1)
print list_info.update_list([1,2,3,4,5])
print list_info.del_list(44)


class Setinfo(object):
    def __init__(self,argus,argus2):
        self.argus = argus
        self.argus2 = argus2

    def add_setinfo(self,keyname):
        if isinstance(keyname,str):
            self.argus.append(keyname)
            return self.argus
        else:
            self.argus2.append(keyname)
            return self.argus2

    def get_intersection(self):
        return set(tuple(self.argus)) & set(tuple(self.argus2))

    def get_union(self):
        return set(tuple(self.argus)) | set(tuple(self.argus2))

    def get_difference(self):
        return set(tuple(self.argus)) - set(tuple(self.argus2))


set_info = Setinfo([1,3,2,4],[1,2,'3','5'])
print set_info.add_setinfo(6)
print set_info.get_intersection()
print set_info.get_union()
print set_info.get_difference()